home *** CD-ROM | disk | FTP | other *** search
Wrap
card_4174.xml <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" > <card> <id>4174</id> <filler1>0</filler1> <bitmap>BMAP_4818.pbm</bitmap> <cantDelete> <false /> </cantDelete> <showPict> <true /> </showPict> <dontSearch> <false /> </dontSearch> <owner>2706</owner> <link rel="stylesheet" type="text/css" href="stylesheet_3135.css" /> <part> <id>1</id> <type>field</type> <visible> <true /> </visible> <dontWrap> <false /> </dontWrap> <dontSearch> <false /> </dontSearch> <sharedText> <false /> </sharedText> <fixedLineHeight> <false /> </fixedLineHeight> <autoTab> <false /> </autoTab> <lockText> <true /> </lockText> <rect> <left>225</left> <top>52</top> <right>398</right> <bottom>187</bottom> </rect> <style>scrolling</style> <autoSelect> <false /> </autoSelect> <showLines> <false /> </showLines> <wideMargins> <false /> </wideMargins> <multipleLines> <false /> </multipleLines> <reservedFamily> 0 </reservedFamily> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>left</textAlign> <font>Geneva</font> <textSize>12</textSize> <textStyle>plain</textStyle> <textHeight>16</textHeight> <name></name> <script></script> </part> <part> <id>2</id> <type>field</type> <visible> <true /> </visible> <dontWrap> <false /> </dontWrap> <dontSearch> <false /> </dontSearch> <sharedText> <false /> </sharedText> <fixedLineHeight> <false /> </fixedLineHeight> <autoTab> <false /> </autoTab> <lockText> <true /> </lockText> <rect> <left>20</left> <top>52</top> <right>209</right> <bottom>115</bottom> </rect> <style>transparent</style> <autoSelect> <false /> </autoSelect> <showLines> <false /> </showLines> <wideMargins> <false /> </wideMargins> <multipleLines> <false /> </multipleLines> <reservedFamily> 0 </reservedFamily> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>left</textAlign> <font>Geneva</font> <textSize>9</textSize> <textStyle>plain</textStyle> <textHeight>12</textHeight> <name></name> <script>on mouseUp put empty into me end mouseUp</script> </part> <part> <id>3</id> <type>button</type> <visible> <true /> </visible> <reserved5> 0 </reserved5> <reserved4> 0 </reserved4> <reserved3> 0 </reserved3> <reserved2> 0 </reserved2> <reserved1> 0 </reserved1> <enabled> <true /> </enabled> <rect> <left>62</left> <top>153</top> <right>162</right> <bottom>175</bottom> </rect> <style>shadow</style> <showName> <true /> </showName> <highlight> <false /> </highlight> <autoHighlight> <true /> </autoHighlight> <sharedHighlight> <true /> </sharedHighlight> <family>0</family> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>center</textAlign> <font>Chicago</font> <textSize>12</textSize> <textStyle>plain</textStyle> <name>Try it!</name> <script>on mouseUp put empty into cd fld 2 -- put GetDefaultFile("Hard Drive:Folder", "TEXT") into this put GetDefaultFile("Hard Drive:Folder") into this put this into cd fld 2 end mouseUp</script> </part> <content> <layer>card</layer> <id>1</id> <text><span class="style2">n XFCN which will open a standard SFGetFile dialog box at a given path. This will override the "Documents" setup in the General Controls Control Panel when using System 7.5. Calling syntax: GetDefaultFile ( <path>, [<type>] ) Type is a filter for specific file types like 'TEXT' or 'rsrc' and is optional. Using "!" and "?" as a parameter will return an on-line help (resp. copyright and syntax).</span></text> </content> <name>GetDefaultFile</name> <script>on openCard put empty into cd fld 2 end openCard </script> </card> card_8277.xml <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" > <card> <id>8277</id> <filler1>0</filler1> <cantDelete> <false /> </cantDelete> <showPict> <true /> </showPict> <dontSearch> <false /> </dontSearch> <owner>8637</owner> <link rel="stylesheet" type="text/css" href="stylesheet_3135.css" /> <part> <id>4</id> <type>field</type> <visible> <true /> </visible> <dontWrap> <false /> </dontWrap> <dontSearch> <false /> </dontSearch> <sharedText> <false /> </sharedText> <fixedLineHeight> <false /> </fixedLineHeight> <autoTab> <false /> </autoTab> <lockText> <true /> </lockText> <rect> <left>2</left> <top>28</top> <right>414</right> <bottom>214</bottom> </rect> <style>scrolling</style> <autoSelect> <false /> </autoSelect> <showLines> <false /> </showLines> <wideMargins> <false /> </wideMargins> <multipleLines> <false /> </multipleLines> <reservedFamily> 0 </reservedFamily> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>left</textAlign> <font>Geneva</font> <textSize>9</textSize> <textStyle>plain</textStyle> <textHeight>12</textHeight> <name>Credits</name> <script>on mouseUp visual dissolve go back end mouseUp</script> </part> <part> <id>5</id> <type>button</type> <visible> <true /> </visible> <reserved5> 0 </reserved5> <reserved4> 0 </reserved4> <reserved3> 0 </reserved3> <reserved2> 0 </reserved2> <reserved1> 0 </reserved1> <enabled> <true /> </enabled> <rect> <left>389</left> <top>5</top> <right>409</right> <bottom>24</bottom> </rect> <style>transparent</style> <showName> <false /> </showName> <highlight> <false /> </highlight> <autoHighlight> <true /> </autoHighlight> <sharedHighlight> <true /> </sharedHighlight> <family>0</family> <titleWidth>0</titleWidth> <icon>130</icon> <textAlign>center</textAlign> <font>Chicago</font> <textSize>12</textSize> <textStyle>plain</textStyle> <name>Help</name> <script>on mouseUp visual dissolve go back end mouseUp</script> </part> <part> <id>6</id> <type>button</type> <visible> <true /> </visible> <reserved5> 0 </reserved5> <reserved4> 0 </reserved4> <reserved3> 0 </reserved3> <reserved2> 0 </reserved2> <reserved1> 0 </reserved1> <enabled> <true /> </enabled> <rect> <left>364</left> <top>5</top> <right>384</right> <bottom>24</bottom> </rect> <style>opaque</style> <showName> <false /> </showName> <highlight> <false /> </highlight> <autoHighlight> <false /> </autoHighlight> <sharedHighlight> <true /> </sharedHighlight> <family>0</family> <titleWidth>0</titleWidth> <icon>132</icon> <textAlign>center</textAlign> <font>Chicago</font> <textSize>12</textSize> <textStyle>plain</textStyle> <name>Help</name> <script>on mouseUp end mouseUp</script> </part> <content> <layer>card</layer> <id>4</id> <text>GetDefaultFile is an XFCN that will open a standard SFGetFile dialog at a given path. It is one of the many externals found in the Core Collection v2.1. I hope someone finds it useful. -- Legal Stuff This external is FreeWare, allowing unlimited use in any non-commercial stack. You just need in this case to mention the author's name and copyright in your stack. Any commercial use must be licensed and acknowledged by the author. Internet: sudderth@traveller.com Web: http://www.hsv.tis.net/~sudderth © 1991-1996 All Rights Reserved Core Development Group, Inc. / Written by John Sudderth If you would like an external developed for your company just drop us a line. Version history: v1.1 - Added optional "Type" parameter. Dialog now opens with first item selected (instead of the last).</text> </content> <name>Credits</name> <script>on openCard set scroll of cd fld 1 to 0 end openCard </script> </card>